//定义组件
define(function (require, exports, module) {

    module.exports = {
        debug: true,
        state: {
            dialogClose: false,
        },
        setMessageAction(newValue) {
            if (this.debug) console.log('setMessageAction triggered with', newValue)
            this.state.dialogClose = newValue
        },
        clearMessageAction() {
            if (this.debug) console.log('clearMessageAction triggered')
            this.state.dialogClose = ''
        }
    }
});